package com.qf.oa_system.controller;

import com.qf.oa_system.entity.RolesPerm;
import com.qf.oa_system.service.RolesPermService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * ???(RolesPerm)表控制层
 *
 * @author makejava
 * @since 2020-06-03 20:26:27
 */
@RestController
@RequestMapping("rolesPerm")
public class RolesPermController {
    /**
     * 服务对象
     */
    @Resource
    private RolesPermService rolesPermService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public RolesPerm selectOne(Integer id) {
        return this.rolesPermService.queryById(id);
    }

}